package com.gxa.admin.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.gxa.admin.group.Login;
import com.gxa.admin.group.Reg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;
import springfox.documentation.annotations.ApiIgnore;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * @author 蔚枫
 * @version 1.0
 * Talk is cheap. Show me the code
 * @description
 * @date 2021/7/21 11:01
 */
@ApiModel(value="店铺审批")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopApplyVo {
    /**
     * 店铺申请id
     */
    @ApiModelProperty(value="店铺申请id")
    @NotNull(message = "店铺申请id不能为空!!",groups = {Reg.class, Login.class})
    private Long shopApplyId;
    /**
     * 审核人账号id
     */
    @ApiModelProperty(value="审核人账号id")
    @NotNull(message = "审核人账号id不能为空!!",groups = {Reg.class, Login.class})
    private Integer shopApplyAuditorId;

    /**
     * 审核人
     */
    @ApiModelProperty(value="审核人")
    @NotEmpty(message = "审核人账号id不能为空!!",groups = {Reg.class, Login.class})
    private String shopApplyAuditor;

    /**
     * 审核状态，0未审核，1已审核
     */
    @ApiModelProperty(value="审核状态，0未审核，1已审核")
    @NotNull(message = "审核状态不能为空!!",groups = {Reg.class, Login.class})
    private Integer shopApplyAudit;


    /**
     * 审核时间
     */
    //@ApiIgnore
    //@ApiParam(hidden = true)
    @ApiModelProperty(value="审核时间,不填写，后台会自动生成",hidden = true)
    @JsonFormat(pattern = "yyyy-dd-MM HH:ss:mm",timezone = "GMT+8")
    private Timestamp shopApplyAuditTime;
    /**
     * 审核结果
     */
    @ApiModelProperty(value="审核结果")
    @NotEmpty(message = "审核结果不能为空!!",groups = {Reg.class, Login.class})
    private String shopApplyResult;
}
